<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-text和v-html指令</title>
</head>
<body>
    <div id="app">
        {{msg}}
        <h1 v-text="msg">今天是个好天气!</h1>
        <h1>今天是个好天气!{{msg}}</h1>
        <span v-html="togo"></span>
        <span v-text="togo"></span>
    </div>
</body>
<script src="./js/2.7.14_dist_vue.js"></script>
<script>
    new Vue ({
        el:"#app",
        data: {
            msg:"你好!Vue",
            togo:'<a href = "www.baidu.com">跳转</a>',
        },
    });
</script>
</html>